Part Number Hot Search : 
MV20005 15400 LA1011 SPX1117R 03929 T2512 1010A VTV300
Product Description
Full Text Search
 

To Download ST20-SWCPC Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  the information in this datasheet is subject to change 42 1669 01 december 1995 1/21 st20 toolset st20swc st20 software development and debugging tools product information inquest file execution e vents variables o ptions w indow h elp program : c :\inquest\examples\app_c\app .btl c:\inquest\examples\app_c\control.c 30 31 32 33 34 35 36 37 38 do { printf(oplease type n : o); } while (scanf(o%do, &n) !=1); return (n); } void close_down (channel *in, channel *o continue interrupt step next step out step t o break watch delete print jump print * locate last evt features ansi c compiler (x3.159-1989). excellent compile time diagnostics. global and local optimization. assembler inserts and stand alone assembler. support for eprom programming. support for placing code and data in user specified memory locations. support for dynamically loading programs and functions. small runtime overhead. cross-development from pc and sun-4 platforms. support for trap and interrupt handlers. inquest interactive and post-mortem debugging: windowing interface using x windows or windows. programmable command language. source code or assembly code view. stack trace-back facility. variable and memory display facility. c expression interpreter. inquest interactive debugging: process and thread break points. single stepping of threads. read/write/access watch point capability. facilities to interrupt and find threads. performance analysis tools: analysis of time spent in each function. analysis of block execution frequency. analysis of processor idle time. analysis of processor utilization. description the st20 ansi c toolset provides a complete high quality software development environment for the st20 microcontroller and microprocessor. the compiler supports the full ansi c language definition and includes both local and global optimizing features. embedded application support is provided by both configuration and symbol map utilities. an interactive windowing debugger provides single stepping, breakpoints, watchpoints and many other features for debugging sequential and multi-tasking programs. execution profilers give various post-mortem statistical analyses of the execution of a program. inquest - browser app main : running app control: stopped at #8001130d app sum: chan-waiting fareg: 0.000000 fbreg: 0.000000 fcreg: 0.000000 processes app feed: chan-waiting inquest - cmdline 32> 3 1 app main : breakpoint 6 at 0 0 > continue 0 0 > interrupt 3 2 app control : interrupted at #8001130d
st20swc 2/21 contents 1 introduction 3 ................................................................ 1.1 applications 3 ............................................................ 2 code building tools 4 ......................................................... 2.1 how programs are built 4 .................................................. 2.2 ansi c compilation system 5 .............................................. 2.3 support for embedded applications 6 ........................................ 3 inquest windowing debugger 9 .............................................. 3.1 interactive debugging 12 ................................................... 3.2 post-mortem debugging 13 ................................................. 4 execution analysis tools 14 .................................................... 4.1 execution profiler 14 ....................................................... 4.2 utilization monitor 15 ....................................................... 4.3 test coverage and block profiling tool 15 ...................................... 5 host interface and aserver 18 .................................................. 5.1 the application loader irun 18 ............................................ 5.2 aserver 18 ............................................................... 5.3 aserver features 19 ........................................................ 6 st20 toolset product components 20 .......................................... 6.1 documentation 20 ......................................................... 6.2 software tools 20 ......................................................... 6.3 software libraries 20 ....................................................... 6.4 operating requirements 20 .................................................. 6.5 distribution media 21 ....................................................... 7 support 21 .................................................................... 8 ordering information 21 .......................................................
st20swc 3/21 1 introduction the st20 ansi c toolset provides a complete high quality software development environment for the st20 microprocessor. the compiler supports the full ansi c language definition and includes both local and global optimizing features. the run-time library includes both standard c functions, supported by host target connections, and st20 specific functions to facilitate real-time, multi-tasking and embedded control operations. the real-time and multi-tasking support uses the on-chip hard- ware micro-kernel and timers, so for many applications no operating system or real-time kernel software is needed. an interactive windowing debugger provides single stepping, breakpoints, watchpoints and many other features for debugging sequential and multi-tasking programs running on an st20. execution analysis tools give post-mortem statistical analyses including execution profiles, processor utiliza- tion, test coverage and block profiles. the host interface is provided by the aserver. this can be used simply as an application loader and host file server,invoked by the irun command. the inquest tools have their own commands which in turn load irun in order to load the application. the aserver may also be used to customize the host interface if required. 1.1 applications single- and multi-tasking; embedded systems; real-time applications; low cost single chip applications; low level device control applications; porting of existing software and packages.
st20swc 4/21 2 code building tools the st20 ansi c toolset provides a complete c cross-development system for the st20. it can be used to build single task and multi-tasking programs for the st20. programs developed with the toolset are both source and binary compatible across all host development machines. the st20 ansi c toolset is available for the following development platforms: ibm 386/486 pc and compatibles under msdos 5 and windows 3.1, or later versions. sun 4 under sunos 4.1.3 or solaris 2.4 with x11 release 4 server or openwindows 3, or later versions. 2.1 how programs are built the toolset build process is shown diagrammatically in figure 1. figure 1 the tool chain ansi c source files may be separately compiled into object files . the compiler and libraries are described in section 2.2. the librarian may be used to collate object files into libraries. the linker links object files and libraries into fully resolved linked units. a configuration description is a text file describing the target hardware and how the software maps onto it. the configurer converts the configuration description file into a configuration binary file. the collector removes any debugging information, and uses the configuration binary to collect the linked files with bootstrap code to make an executable file called a bootable file . during development and for hosted systems, the bootable file may be loaded down a hardware serial link onto the target hardware using the application loader . for stand-alone systems, the bootable file may be converted, using the eprom tool, to an industry standard eprom format for programming eproms. in addition to loading programs down a hardware serial link, the application loader program provides access to host operating system facilities through a remote procedure call mechanism. this method is used to support the full ansi c run-time library. a memory configurer tool is supplied for describing a st20450 memory configuration. this data is used to initialize the memory interface of the st20450. the memory interface can be initialized either using the hardware serial link or from rom.
st20swc 5/21 2.2 ansi c compilation system 2.2.1 compiler operation the compiler operates from a host command line interface. the preprocessor is integrated into the compiler for fast execution. the compile time diagnostics provided by the compiler are comprehen- sive and include type checking in expressions and type checking of function arguments. 2.2.2 ansi conformance the st20 ansi c toolset supports the full standard language as defined in x3.159-1989. the compiler passes all the tests in the validation suites from plum hall and perennial. 2.2.3 local optimized code generation the compiler implements a wide range of local code optimization techniques. constant folding. the compiler evaluates all integer and real constant expressions at compile time. workspace allocation. frequently used variables are placed at small offsets in workspace, thus reducing the size of the instructions needed to access them, and hence increasing the speed of execution. dead-code elimination. code that cannot be reached during the execution of the program is removed. peephole optimization. code sequences are selected that are the fastest for the operation. constant caching. some constants have their load time reduced by placing them in a constant table. unnecessary jumps are eliminated. switch statements can generate a number of different code sequences to cover the dense ranges within the total range. special idioms that are better on st20s are chosen for some code sequences. 2.2.4 globally optimized code generation the ansi c globally optimizing compiler extends the types of optimizations it performs to global techniques. these have typically given a 1525 percent improvement in speed over the local opti- mizations as measured by a suite of internal benchmarks. common sub-expression elimination removes the evaluation of an expression where it is known that the value has already been computed; the value is stored in temporary local work- space. this improves the speed of a program and reduces code size. loop-invariant code motion can move the position where an expression is evaluated from within a loop to outside it. if the expression contains no variables that are changed during the execution of a loop, then the expression can be evaluated just once before the loop is entered. by keeping the result in a temporary, the speed of execution of the whole loop is increased. tail-call optimization reduces the number of calls and returns executed by a program. if the last thing a function does is to invoke another function and immediately return the value there from, then the compiler attempts to re-use the same workspace area by just jumping to (rather than calling) the lower level function. the called function then returns directly to where the upper level function was called from. in the case where the call is a recursive call to the same function, then the workspace is exactly the right size, and a saving is also made because the stack adjustment instructions are no longer needed either. this optimization saves speed and total stack space.
st20swc 6/21 workspace allocation by coloring reduces the amount of workspace required by using the same word for two variables when it can be determined that they are not both required at the same time. the optimizing compiler also implements a pragma, ims_nosideeffects , whereby the user can indicate that a function does not have any side-effects on external or static variables. the optimizer can then use this information to make assumptions about what state can be changed by a function invocation and hence about the validity of any previously computed expressions. 2.2.5 libraries the full set of ansi libraries is provided. the standard library operates in double precision. versions of the mathematical functions are provided that operate on float arguments and return float values. these libraries provide improved performance for applications where performance requirements override accuracy requirements. a reduced c library is supplied to minimize code size for embedded systems applications. this library is appropriate for code which does not need to access host facilities. collections of functions can be compiled separately with the ansi c compiler and then combined into a library. the linker is used to combine separately compiled functions into a program. 2.2.6 assembler inserts the ansi c toolset provides a very powerful assembler insert facility. the assembler insert facility supports: access to the full instruction set of the st20; symbolic access to c variables (automatic and static); pseudo operations to load values into registers; loading results of c expressions; labels and jumps; directives for instruction sizing, stack access, return address access etc. 2.3 support for embedded applications the toolset has been designed to support the development of embedded applications. the features include the ability to place code and data at particular places in memory, being able to access the st20 instruction set efficiently from c, and to reduce the c run-time overhead to suit the application. 2.3.1 placing code and data at configuration level, a program consists of its code, stack, static and heap segments. the configurer allocates each of these separate segments a place in the memory of the processor. by default, the configurer allocates all the code and data segments to a contiguous default block of memory. the location of this default block and the order of the segments may be defined in the configuration description. the configuration description can also specify that any one of the code or data segments of an application are to be allocated to particular places in memory outside the default block. the compiler, linker and collector each will optionally produce a listing of how the various parts of an application are mapped into the segments and memory.a tool is provided that can read all these map files and produce a summary of the whole application, giving the locations of all the functions and static variables. information is collated about code and data segments including the start address and size.
st20swc 7/21 2.3.2 access to the instruction set ansi c is a good language for writing embedded applications, since it combines the constructs of a high level programming language with low level access to the hardware through assembler inserts. to make the access to some of the st20 instructions even more effective, a number of special library functions have been defined which the optimizing compiler can render as in-line code. this removes the overhead of a library call, but it also gives the optimizer more information on what the program is doing. normally, when the optimizer sees a function containing some assembler code, it must make very conservative assumptions about the effect the code has on its surroundings, e.g. on static variables and parameters. by using the functions defined to access the instructions, the optimizer knows exactly what the effects will be and can make the correct assumptions for the side-effects of the code. the st20 instructions that can be accessed in this way include block moves, channel input and output, bit manipulation, crc computations, semaphores and some scheduling operations. 2.3.3 run-time overhead reduction in order to support the full ansi c language, a significant run-time library is necessary. the toolset is supplied with another library, known as the reduced library , which does not support file system and environment requests, which depend on a host. if some of the other features in ansi c are not used, then it may be possible to reduce the overhead further by modifying the run-time initialization, the source of which is provided. 2.3.4 assembler inserts within the sgs-thomson implementation of the ansi c language, assembler code can be written at any point to achieve direct access to st20 instructions for reasons of speed and code size. full access is available to the st20 instruction set and c program variables. 2.3.5 assembler if there is no other way to obtain the code required, for example when writing customized bootstrap mechanisms, then the toolset contains an assembler as the final phase of the compiler. this can be invoked to assemble user-written code. 2.3.6 dynamic loading of processes the toolset can encapsulate the code and data of a process in a file called a relocatable separately- compiled unit or rsc . this form is suitable for it to be loaded by another application and called. a set of functions is provided for this to be achieved. the rsc can be found either in a file, or already in memory, or is input along a channel. the memory variant allows an rsc to be placed into rom and executed if required. for example, if an application wishes to select a device driver to be placed in on-chip memory, then a number of possible drivers can be placed in rom and the application can choose one for the occasion, copy it into low memory and execute it. 2.3.7 bootstraps the source code of the standard bootstraps are provided. the user can then write bootstraps that are tailored to a specific application by using the standard ones as templates. 2.3.8 memory configuration an interactive memory configurer tool is supplied for describing a st20450 memory configuration. the memory interface of the st20450 is configurable and must be initialized before the memory can be accessed. this data is used by the toolset tools to generate the code to initialize the memory
st20swc 8/21 interface of the st20450. this code is either downloaded from the host using the hardware serial link using the host server or is incorporated into a rom using the eprom programming tool. for an st20 variant with a memory interface different from the st20450, example bootstrap code is provided. 2.3.9 interrupt and trap handling library support is supplied for trap handlers and st20450 interrupt handlers. this allows trap handlers and st20450 interrupt handlers to be written in c which will use the on-chip trap handling and interrupt handling support. interrupt handlers for other st20 variants may be based on the provided libraries.
st20swc 9/21 3 inquest windowing debugger the inquest debugger can debug ansi c st20 programs either interactively or post-mortem. a user interface displays source code or disassembled code and enables the user to interact with the debugger by means of buttons and menus, mouse and keyboard. the interface is built using the x window system and osf/motif for sun-4s or microsoft windows for pcs. the program being debugged may consist of any number of tasks (or threads of execution) some of which may be running while others are stopped or being single stepped. the host debugger program is asynchronous and holds a copy of the last stopped state of each thread, so values may be inspected by the host while the user program is running on the st20. multiple debugging windows may be opened to view different parts of the program simultaneously. the inquest debugger has three debugging modes: interactive debugging, i.e. monitoring the application as it executes on the target processor; post-mortem debugging on the target processor when the application has stopped; post-mortem debugging on the host from a dump file. inquest - browser app main : running app control: stopped at #8001130d app sum: chan-waiting fareg: 0.000000 fbreg: 0.000000 fcreg: 0.000000 processes app feed: chan-waiting inquest file ex ecution e vents variables o ptions w indow h elp program : c :\inquest\examples\app_c\app .btl c:\inquest\examples\app_c\control.c 30 31 32 33 34 35 36 37 38 do { printf(oplease type n : o); } while (scanf(o%do, &n) !=1); return (n); } void close_down (channel *in, channel *o continue interrupt step next step out step t o break watch delete print jump print * locate last evt inquest - cmdline 32> 3 1 app main : breakpoint 6 at 0 0 > continue 0 0 > interrupt 3 2 app control : interrupted at #8001130d figure 2 the microsoft windows debugger display inquest - browser 3 factorial( ) at 2 factorial( ) at 1*main( ) at processes threads fareg: 0.000000 fbreg: 0.000000 fcreg: 0.000000 figure 3 a microsoft windows stack trace inquest - cmdline 3 3 > print *p { link = 00000000, wsret = -2147422152, wbase = 8002cde0, wsize = 4096, chan = *empty* } 00> figure 4 displaying a structured variable on microsoft windows
st20swc 10/21 boot file app.btl simple /user/inquest/examples/app_c/app.cfs 00> file execution events variables options continue last event interrupt config file: app.cfs st20_4 (memory=1m, memstart = 0x80000140) single; connect single.link[0] to host; process (interface(input hostin, output hostout), stacksize=20k, heapsize=40k, priority=low) simple; input fromhost; output tohost connect simple.hostin to fromhost; connect simple.hostout to tohost; use osimple.lkuo for simple; place simple on single; place fromhost on host; place tohost on host; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 1 app main : monitor 0 thread created at locate figure 5 the x-windows debugger display 2 1 facs main: stopped at 4 factorial() at file execution events variables options 3 factorial() at 2 factorial() at 1*main() at processes threads figure 6 an x-windows stack trace
st20swc 11/21 33> chanoutint(outfeed, 0); 31 3 3 > print *p { link = 00000000, wsret = 2147422152, wbase = 8002cde0, wsize = 4096, wp = 8002ddc4, psize = 4, ofunc = 80010650, chan = *empty* } figure 7 displaying a structured variable on x-windows #8000a098: 0x00000000 0x00000001 0x00000001 0x8003b5e4 0x8003b5dc 0x8000fbd1 #8000a0b0: 0x80014fdc 0x00000001 0x8000a0d4 0x00000000 0x00000000 0x00000000 #8000a0c8: 0x00000000 0x00000000 0x80014fdc 0x8000fbd8 0x00000000 0x8003b95c #8000a0e0: 0x80014fdc 0x8003b8d8 0x8171f824 0xfa7671d1 0x80000000 0x80000000 #8000a0f8: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a110: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a128: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a140: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a158: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a170: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a188: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a1a0: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a1b8: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a1d0: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a1e8: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a200: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a218: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a230: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a248: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a260: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a278: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a290: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a2a8: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a2c0: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a2d8: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a2f0: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 #8000a308: 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 0x80000000 file view options processor: 0 start address: 0x8000a098 end address: 0x8000a31c hexadecimal type: word format: processor: single type: st20 memory: 2048k figure 8 displaying memory contents on x-windows
st20swc 12/21 3.1 interactive debugging sun-4 or pc host target st20 debugging kernel user program debugger program user i/o debug services trace information user i/o server application figure 9 interactive debugger architecture the interactive debugger consists of a host-based symbolic debugger and a target-resident debug- ging kernel that is configured into the application program on an st20 processor. the interactive debugger provides the following features: a break point facility that can be used on particular threads of execution. a single stepping facility that allows a thread of execution to be single stepped at the source level or at the assembly code level. a watch point facility that enables the program to be stopped when variables are to be written to or read from. a facility to find the threads of execution of a program and set break points on them. a stack trace facility. a facility to monitor the creation of threads of execution. commands to print the values of variables and display memory. commands to modify variables and memory at run time. a simple interpreter to enable c aggregate types (i.e. structures and arrays) to be displayed. a programmable command language that allows complex break points and watch points to be set and enables debugging scripts to be generated. a source and object browser to select a process, a thread and source code. an interface to the real-time operating system for dynamic code loading and thread creation.
st20swc 13/21 3.2 post-mortem debugging the post-mortem debugger provides the following features: a source and object browser to select a process, a thread and source code. commands to print the values of variables and display memory. a simple interpreter to enable c aggregate types (i.e. structures and arrays) to be displayed. creation of dump files. debugging from a dump file.
st20swc 14/21 4 execution analysis tools three profiling tools are supplied for analyzing the behavior of application programs; the execution profiler, the utilization monitor, and the test coverage and block profiling tool. the monitoring data is stored in the target processor 's memory, so the profiling tools have little execution overhead on the application. after the program has completed execution, the monitoring data is extracted from the processor and is analyzed to provide displays on the program execution. the tools provided are the execution profiler, the utilization monitor, and the test coverage and block profiling tool. the execution profiler estimates the time spent in each function and procedure, the processor idle time and various other statistics. the utilization monitor displays a gantt chart of the cpu activity of the processor as time progresses. the test coverage and block profiling tool counts how many times each block of code is executed. 4.1 execution profiler the execution profiler gives an analysis of the total time spent executing each function on each processor. it provides the following information on program execution: the percentage time spent executing each low priority function. the percentage time spent executing at high priority. the percentage idle time of the processor. the number of low priority calls of each function and where it was called from. processor orooto idle time 35.3% (19516) high time 0.1% (37) wptr misses 0 iptr misses 0 resolution 4 ----------------------------------------------------------------------------- process oexo (99.9% processor) (35.666s) stack 100.0% (35666) heap 0.0% (0) static 0.0% (0) function name | process | processor |samples ----------------------------------------------------------------------------- libc.lib/getc | 11.4 | 11.4 |4081 cc/pp.c/pp_rdch0 | 10.1 | 10.1 |3605 cc/bind.c/globalize_memo | 6.9 | 6.9 |2467 cc/pp.c/pp_process | 4.3 | 4.3 |1525 cc/pp.c/pp_rdch3 | 4.2 | 4.2 |1497 cc/pp.c/pp_rdch2 | 3.9 | 3.9 |1380 cc/pp.c/pp_rdch1 | 3.8 | 3.8 |1354 cc/pp.c/pp_rdch | 3.5 | 3.5 |1252 cc/pp.c/pp_nextchar | 3.3 | 3.3 |1189 cc/pp.c/pp_checkid | 3.2 | 3.2 |1150 cc/lex.c/next_basic_sym | 2.7 | 2.7 |979 libc.lib/strcmp | 2.3 | 2.3 |812 libc.lib/dummysemwait | 2.2 | 2.2 |784 libc.lib/sub_vfprintf | 1.7 | 1.7 |617 figure 10 example output from the execution profiler the execution of the user program is monitored by a profiling kernel. the presence of the profiler kernel will slow the execution of the program by less than 5%. 4.2 utilization monitor the utilization monitor shows in graphical form the utilization of the processor over the time of the program execution. this is displayed by an interactive program that draws a chart of processor
st20swc 15/21 execution against time using x window system and osf/motif on a sun-4 or microsoft windows on a pc. as with the execution profiler, the user program is monitored by a profiling kernel. the kernel will slow the program by less than 5%. st20 quit zoom in zoom out 0.000 3.840 7.680 11.520 15.360 19.200 23.040 26.880 30.720 34.560 figure 11 example x-windows display from the utilization monitor 4.3 test coverage and block profiling tool this tool monitors test coverage and performs block profiling for an application which has been run on target hardware. this tool is able to: provide an overall test coverage report; provide per module test coverage reports; accumulate a single report from multiple test runs; provide a detailed basic block profiling output by creating an annotated program listing; provide output that can be fed back into the compiler as a part of its optimization process. the application program (compiled with the appropriate compiler option) is run and accumulates the counts in the memory of the target processor. the tool is used to extract the results and save, accumulate or display them. this application writes the counts into the code area, so the tool cannot be used with code running from rom. writing coverage file osquare.vo 40% coverage writing coverage file ocomms.vo 14% coverage writing coverage file oapp.vo 75% coverage writing coverage file ocontrol.vo 36% coverage writing coverage file ofeed.vo 33% coverage writing coverage file osum.vo 40% coverage total coverage for bootable 39% over 1 run figure 12 example test coverage summary report the following is an example of the contents of a coverage file: |/* | * facs.c |* | * generate factorials |* |*/ | |#include |#include |#include |#include |#include |#include ocomms.ho | |#define true 1 |#define false 0 | |
st20swc 16/21 |/* | * compute factorial |* |*/ | |int factorial(int n) 96 |{ | if(n>0) 74 | retur n(n* factorial(n1)); | else 22 | return (1); | |} | |int main() 1|{ | channel *in, *out; | int going = true; | | in = get_param(1); | out = get_param(2); | | while (going) 27 | { | int n, tag; | | tag = read_chan (in, &n); | switch (tag) |{ | case data: { 22 | send_data (out, factorial(n)); | break; |} | case next: { /* start a new sequence */ 4 | send_next (out); | break; |} | case end: { /* terminate */ 1 | going = false; | send_end (out); |} |} |} |} |} | ###################### # summary of results # ###################### source file : facs.c number of runs : 1 processors : all >from linked unit : facs.lku top 10 blocks!! line 25 96 times line 27 74 times line 42 27 times line 29 22 times line 49 22 times line 53 4 times line 34 1 time line 57 1 time total number of basic blocks 8 basic blocks not executed 0 coverage 100%
st20swc 17/21 5 host interface and aserver the host interface is provided by the aserver. this can be used simply as an application loader and host file server,invoked by the irun command. the inquest tools have their own commands which in turn load irun in order to load the application. the aserver may also be used to customize the host interface if required. 5.1 the application loader irun irun performs three functions, namely: 1 to initialize the target hardware; 2 to load a bootable application program onto the target hardware via the hardware serial link; 3 to serve the application, i.e. to respond to requests from the application program for access to host services, such as host files and terminal input and output. these steps are normally performed when irun is invoked. 5.2 aserver the aserver (asynchronous server) system is a high performance interface system which allows multiple processes on a target device to communicate via a hardware serial link with multiple processes on some external device. the aserver software acts as a standard interface which is independent of the hardware used. a simple example is shown in figure 13, in which the external device is the host. irun services target host gateway gateway clients link target hardware figure 13 a simple software host-target interface the aserver is a collection of programs, interface libraries and protocols that together create a system to enable applications running on target hardware to access external services in a way that is consistent, extensible and open. the software elements provided are: a target gateway which runs on the target; an irun gateway which runs on the host; an iserver service which runs on the host; an iserver converter which runs on the target; a library of interface routines for use by client and service processes; simple example services.
st20swc 18/21 5.3 aserver features this type of architecture offers a number of advantages: 1 the aserver handles multiple services. a number of services may be available on one device, handled by a single gateway. for example, new services may be added without modifying a standard server. 2 the aserver handles multiple clients. any process on any processor in the target hardware may open a connection to any service. the process opening the connection is called the client. several clients may access the same service. the gateway will automatically start new services as they are requested. 3 services are easy to extend. the aserver enables users to extend the set of services that are available to a user'sapplica- tion. the aserver provides the core technology to allow users to create new services by providing new processes. for example, the iserver service provides terminal text i/o, file access and system services, which may be expanded by adding new aserver service processes such as a graphics interface. 4 aserver communications can be fast and efficient. the communications over the link between gateways use mega-packets, which make effi- cient use of the available bandwidth. messages between the client and the service are divided into packets of up to 1 kbyte. the packets are bundled into mega-packets to send over the hardware serial link. packets from different clients and services can be interleaved to reduce latency. 5 aserver communications are independent of hardware. when an aserver connection has been established the process can send data messages of arbitrary length to the service it is connected to, receive data messages of arbitrary length and disconnect from the service. the gateways are responsible for building and dividing mega- packets and complying with hardware protocols.
st20swc 19/21 6 st20 toolset product components 6.1 documentation toolset user guide inquest debugger tutorial toolset reference manual language and libraries reference manual inquest user and reference manual delivery manual aserver programmers' guide 6.2 software tools icc , ilink , ilibr ansi c compiler, linker and librarian ilist , imap binary lister program and memory map lister icconf , icollect configuration tools ieprom , imem450 eprom and st20450 memory interface programming tools irun application loader inquest interactive and post-mortem debugger imon , iprof , iline execution analysis tools aserver customizable host interface 6.3 software libraries full ansi library plus multi-tasking support reduced library for embedded systems run-time start-up support library debugging support library aserver library 6.4 operating requirements 6.4.1 sun-4 toolset the sun-4 st20 toolset package will run on a sun-4 sparc-based workstation, server or compat- ible, running sunos 4.1.3 or solaris 2.4 or later. to support the graphical user interface, the environ- ment must include an x window system server (x11r4 or later) such as an x terminal or sparcsta- tion running openwindows 3. the toolset is designed to operate in conjunction with an ims b300 ethernet gateway acting as interface to the st20 development hardware, such as a st20450 development board.
st20swc 20/21 6.4.2 pc toolset the pc st20 toolset will run on an ibm 386 pc or ibm 486 pc or compatible, running ms-dos 5.0 or compatible. to support the graphical user interface, the environment must include microsoft windows 3.1. the pc toolset is designed to operate in conjunction with any of the following hardware development systems or compatible hardware: a st20 evaluation board using the pc parallel port; a st20450 development board and a pc parallel port interface; an ethernet connection to an ims b300 ethernet gateway and st20 development hardware, such as a st20450 development board. 6.5 distribution media sun-4 software is distributed on 60 mbyte qic-24 1 / 4 inch data cartridges, in tar format. pc software is distributed on 3.5 inch high density (1.44 mbyte) diskettes. 7 support st20 development products are supported worldwide through sgs-thomson sales offices, regional technology centers, and authorized distributors. 8 ordering information description order number st20 toolset for 386 pc. st20swc/pc st20 toolset for sun 4. st20swc/sun
st20swc 21/21 information furnished is believed to be accurate and reliable. however, sgs-thomson microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of sgs-thomson microelectronics. specifications mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. sgs- thomson microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of sgs-thomson microelectronics. e 1995 sgs-thomson microelectronics - all rights reserved ims and ds-link are trademarks of sgs-thomson microelectronics limited. is a registered trademark of the sgs-thomson microelectronics group. x window system is a trademark of mit. osf/motif is a trademark of the open software foundation, inc. windows is a trademark of microsoft corporation. sgs-thomson microelectronics group of companies australia - brazil - france - germany - hong kong - italy - japan - korea - malaysia - malta - morocco - the netherlands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a.


▲Up To Search▲   

 
Price & Availability of ST20-SWCPC

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X